
#ifndef ALIGNWIDGET_H
#define ALIGNWIDGET_H

#include <BButtonGroup>

using namespace BWE;

class AlignWidget : public BWidget
{
public:
	AlignWidget(BWidget* parent = 0);
	~AlignWidget();

	void setAlign(Align align);
	Align align() const;
	BString alignText() const;

protected:
	void slotButtonChecked();

private:
	BButton*		_leftTopButton;
	BButton*		_topCenterButton;
	BButton*		_rightTopButton;
	BButton*		_leftCenterButton;
	BButton*		_centerButton;
	BButton*		_rightCenterButton;
	BButton*		_leftBottomButton;
	BButton*		_bottomCenterButton;
	BButton*		_rightBottomButton;
	BHolder<BButtonGroup>	_buttonGroup;
};

#endif
